package com.att.action;

import com.att.bean.DeptBean;
import com.att.service.DeptService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("dept")
public class DeptAction {

    @Resource(name = "deptService")
    private DeptService deptService;

    /**
     * Description: 查询科室名称
     */
    @RequestMapping("selectDpetName")
    @ResponseBody
    public Object selectDpetName() {
        List<DeptBean> list = deptService.findDeptName();
        return list;
    }
}
